from django.db import models
from .__baseModel import BaseModel
from .userModel import User
class Order(BaseModel):
    user = models.ForeignKey(User, on_delete=models.CASCADE)
    money = models.IntegerField(default=0)
    status = models.SmallIntegerField(default=0, db_comment='支付状态')
    pay_time = models.DateTimeField(null=True, db_comment='支付时间')
    refund_money = models.IntegerField(default=0, db_comment='退款金额')
    refund_at = models.DateTimeField(null=True, db_comment='退款时间')
    created_at = models.DateTimeField(auto_now_add=True)